package com.mall.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.pojo.ShoppingCart;
import org.apache.ibatis.annotations.Param;

/**
 * 购物车Mapper 接口
 *
 * @author xiao-chen
 * @since 2023-04-27
 */
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {
    Integer deleteShoppingCartWares(@Param("userId") Long userId, @Param("waresId") Long waresId);

    Integer updateShoppingCartWaresNum(@Param("userId") Long userId, @Param("waresId") Long waresId, @Param("num") int num);

    Integer selectShoppingCartWaresNum(@Param("userId") Long userId, @Param("waresId") Long waresId);
}
